using System; 
using System.Text; 
using System.Data;
using System.Data.SqlClient;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration; 
using System.Xml; 
using System.Xml.Serialization;
using SubSonic; 
using SubSonic.Utilities;
namespace LMSData
{
    /// <summary>
    /// Controller class for UserCourse
    /// </summary>

    public partial class UserCourseMapController
    {

        public UserCourseMapCollection GetByIDs(int UserID, int CourseID)
        {
            UserCourseMapCollection coll = new UserCourseMapCollection();
            Query qry = new Query(UserCourseMap.Schema);
            qry.AddWhere(UserCourseMap.Columns.UserID, UserID);
            qry.AddWhere(UserCourseMap.Columns.CourseID, CourseID);
            coll.LoadAndCloseReader(qry.ExecuteReader());
            return coll;
        }
       
    }
}
